var cache = new Cache

cache.set('Lorem ipsum', 'key1', 'tag1', 1000)

cache.set('Dolor sit amet', 'key2', ['tag3','tag4'])

cache.set('Bill Gates', 'key3', 'tag3')


window.setTimeout(function(){
	console.log('key1 is '+cache.get('key1'))
}, 500)

window.setTimeout(function(){
	console.log('key1 is '+cache.get('key1'))
}, 1100)

window.setTimeout(function(){
	console.log('key2 is '+cache.get('key2'))
	cache.clearTag('tag4')
	console.log('key2 is '+cache.get('key2'))
	console.log('======')
	console.log('Cache:')
	console.log(cache)
}, 2000)


